package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * ClassName:SpringConfiguration
 * Package:com.itheima.config
 * Description:Spring的配置类相当于 applicationcontext.xml
 * Date:2020/3/4 1:19
 * User: snow
 */
@Configuration
@ComponentScan("com.itheima")
@Import({JdbcConfig.class , TransactionConfig.class})
@PropertySource("jdbcConfig.properties")
@EnableTransactionManagement

public class SpringConfiguration {
}
